<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Gray发布系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <link rel="stylesheet" href="/static/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/css/swiper.min.css">
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/swiper.jquery.min.js"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>

</head>
<body>
<!-- 顶部开始 -->
{% include "public/top.html" %}
<!-- 中部开始 -->
<div class="wrapper">
    {% include "public/left_menu.html" %}
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <form class="layui-form" action="/deploy-search/">
                <div class="layui-form-pane" style="text-align: left;">
                    <div class="layui-form-item" style="display: inline-block;">

                        <div class="layui-input-inline">
                            <input type="text" name="project_name" value="{{ project_name }}" placeholder="请输入项目名" autocomplete="off"
                                   class="layui-input">
                        </div>
                        <div class="layui-input-inline" style="width:80px">
                            <button class="layui-btn" lay-submit="" lay-filter="sreach"><i
                                    class="layui-icon">&#xe615;</i></button>
                        </div>
                    </div>
                </div>
            </form>
            <span class="x-right" style="line-height:40px">共有数据：{{ list.count }} 条</span>
           <table class="layui-table">
                <thead>
                <tr>
                    <th>项目名</th>
                    <th>今日发布次数</th>
                    <th>发布说明</th>
                    <th>发布状态</th>
                    <th>操作人</th>
                    <th>发布时间</th>
                </tr>
                </thead>
                <tbody>
                {% for l in list %}
                    <tr>
                    <td>{{ l.project_name }}</td>
                    <td>{{ l.today_count }}</td>
                    <td>{{ l.deploy_desc }}</td>
                    <td>
                        {% if l.status == 1 %} <img src="/static/icon/suc.png"> {% endif %}
                        {% if l.status == 2 %} <img src="/static/icon/fail.png"> {% endif %}
                    </td>
                    <td>{{ l.op_user }}</td>
                    <td>{{ l.create_at | date:"Y-m-d H:i:s"}}</td>
                </tr>
                {% endfor %}
                </tbody>
            </table>
            <!-- 右侧内容框架，更改从这里结束 -->
        </div>
    </div>
    <!-- 右侧主体结束 -->
</div>
<!-- 中部结束 -->
{% include "public/bottom.html" %}
{% include "public/bg_change.html" %}
<script>
    function member_add(title, url, w, h) {
        x_admin_show(title, url, w, h);
    }

    function opt_add(title, url, w, h) {
        x_admin_show(title, url, w, h);
    }
</script>

</body>
</html>